package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商家用户和店铺关联表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_store_user")
public class StoreUser implements Serializable {

    private static final long serialVersionUID = 1L;

    // 关联表ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 用户ID
    private Long userId;

    // 店铺ID
    private Integer storeId;

    // 角色：1店铺拥有者，3店员
    private Integer role;
}
